﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NewAI.FSM.SocketConnectFSM
{
    public class SendMsgToGameServerState : State<AIClientSocket>
    {
        private string sendMsg;
        public SendMsgToGameServerState(string msg)
        {
            sendMsg = msg;
        }

        public override void Enter(AIClientSocket entity)
        {
            entity.ClientSocket.Send(sendMsg);
        }
    }
}
